	<p><a href="<?php echo $this->url(array('controller'=>'database','action'=>'add'));?>">
	A&ntilde;adir nuevo libro</a></p>
<table>
	<tr>
		<th>T&iacute;tulo</th>
		<th>Autor</th>
		<th>&nbsp;</th>
	</tr>
	<?php foreach($this->libros as $v) : ?>
	<tr>
		<td><?php echo $v['titulo'];?></td>
		<td><?php echo $v['autor'];?></td>
		<td>
			<a href="<?php echo $this->url(array('controller'=>'database', 'action'=>'edit', 'id'=>$v['id']));?>">Editar</a>
			<a href="<?php echo $this->url(array('controller'=>'database',	'action'=>'delete', 'id'=>$v['id']));?>">Borrar</a>
		</td>
	</tr>
	<?php endforeach; ?>
</table>

